﻿<%@ Page Language="c#" CodeBehind="TreeView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Mail.TreeViewPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>TreeView</title>
  <uds:Style runat="server" Href="~/Css/BasicLayout.css" />
  <script language="javascript">
		function confirmSelect()
	{
	    var parwin = window.dialogArguments;	
	    tdText = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("Text");
	    tdID   = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("ID");
		if(parwin.ReadMail!=null)
		{
			if(confirm("您确认要选择 <<"+tdText+">> ?"))
			{	
				parwin.location='ReadMail.aspx?Action=3&ClassID='+tdID+'&MailID='+parwin.ReadMail.hdnMailID.value;
				window.close();
			}
			
		}
		if(confirm("您确认要选择 <<"+tdText+">> ?"))
		{
			parwin.document.all.txtProjectName.value=tdText;
			parwin.document.all.hdnProjectID.value=tdID;
			window.close();
		
		}
	}

  </script>
</head>
<body>
  <table width="33%" border="0">
    <tr>
      <td>&nbsp;
        <iewc:TreeView ID="mailTreeView" runat="server" ondblclick="javascript:confirmSelect()" />
      </td>
    </tr>
    <tr>
      <td><input class="ButtonCss" type="button" value="确定" onclick="confirmSelect()"></td>
    </tr>
  </table>
  <form id="TreeView" method="post" runat="server">
  </form>
</body>
</html>
